﻿<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Event对象的pageX和pageY属性</title>
<script type="text/javascript" src="../js/jquery-3.3.1.min.js"></script>
	<script type="text/javascript">
	$(document).ready(function(){
		$("#ediv").mouseover(function(event){
			// 获取鼠标相对于页面的坐标
			alert("当前鼠标的位置是："+event.pageX+"，"+event.pageY);
		})
	});
	</script>
</head>
<body>
<div id="ediv">Event对象</div>
</body>
</html>
